package com.eastcode.mobile.server.main.action;

import com.eastcode.base.action.BaseAction;
import com.eastcode.base.util.DateUtil;
import com.eastcode.mobile.server.system.entity.User;

public class DispatchAction extends BaseAction {

	private static final long serialVersionUID = 1832077385793111887L;

	public void execute() {
		prepare(this);
		
		String ftl = request.getParameter("ftl");
		request.setAttribute("user", new User());
		request.setAttribute("today", DateUtil.getTodayStr());
		forward("/template/" + ftl + ".ftl");

	}
}
